
#include <iostream>
using namespace std;

#include "gtest/gtest.h"

#include "Array2D.h"

TEST( Array2DTest, Simple )
{
    int i, j;
    Array2D<int> X( 3, 2 ), Y;

    for ( i = 0; i < 3; i++ )
        for ( j = 0; j < 2; j++ )
            X[i][j] = 2*i + j;

    EXPECT_EQ( 5, X[2][1] );

    Y = X;

    EXPECT_EQ( 5, Y[2][1] );
}

#include "main_stub.h"

